﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:DataList ID="dListItems" runat="server">
         <ItemTemplate>   Title:
                <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>' />
                <br />
                </ItemTemplate>
        </asp:DataList>
        <asp:DataList ID="dlPaging" runat="server" onitemcommand="dlPaging_ItemCommand" 
            onitemdatabound="dlPaging_ItemDataBound" RepeatDirection="Horizontal">
             <ItemTemplate>            
                <asp:LinkButton CommandArgument=<%# Eval("PageIndex") %> Text=<%# Eval("PageText") %>  CommandName="Paging" ID="lnkbtnPaging" runat="server" />
            </ItemTemplate>
        </asp:DataList>


        <asp:LinkButton ID="LinkButtonFirst" runat="server" 
            onclick="LinkButtonFirst_Click">First</asp:LinkButton>
        <asp:LinkButton ID="LinkButtonPre" runat="server" onclick="LinkButtonPre_Click">Pre</asp:LinkButton>
        <asp:LinkButton ID="LinkButtonNext" runat="server" 
            onclick="LinkButtonNext_Click">Next</asp:LinkButton>
        <asp:LinkButton ID="LinkButtonLast" runat="server" 
            onclick="LinkButtonLast_Click">Last</asp:LinkButton>
        <asp:Label ID="lblPageInfo" runat="server" Text="Position"></asp:Label>
    
        <asp:LinkButton ID="lnkbtnPaging" runat="server">LinkButton</asp:LinkButton>
    
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:simbafConnectionString %>" 
            SelectCommand="SELECT * FROM [NEWS]"></asp:SqlDataSource>
        <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
    </div>
    </form>
</body>
</html>
